import http from '../http.js'

// 分页查询采购入库列表
export function getPurchaseStoragePage(data) {
  return http.post('/procurement/purchase/storage/page', data)
}

// 新增采购入库
export function addPurchaseStorage(data) {
  return http.post('/procurement/purchase/storage', data)
}

// 获取采购入库详情
export function getPurchaseStorageDetail(id) {
  return http.get(`/procurement/purchase/storage/${id}`)
}

// 修改采购入库
export function updatePurchaseStorage(id, data) {
  return http.put(`/procurement/purchase/storage/${id}`, data)
}

// 删除采购入库
export function deletePurchaseStorage(ids) {
  return http.delete(`/procurement/purchase/storage/${ids}`)
}

// 导出采购入库
export function exportPurchaseStorage(params) {
  return http.get('/procurement/purchase/storage/export', {
    params,
    responseType: 'blob'
  })
}
